package com.kqb.order.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单项
 * </p>
 *
 * @author 杉果树皮
 * @since 2025-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_item")
@ApiModel(value = "OrderItem对象", description = "订单项")
public class OrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单项ID")
    @TableId(value = "order_item_id")
    private Integer orderItemId;

    @ApiModelProperty(value = "店铺id")
    private Long shopId;

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "分类id")
    private Long categoryId;

    @ApiModelProperty(value = "产品ID")
    private Long spuId;

    @ApiModelProperty(value = "产品SkuID")
    private Long skuId;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @ApiModelProperty(value = "购物车产品个数")
    private Integer count;

    @ApiModelProperty(value = "产品名称")
    private String spuName;

    @ApiModelProperty(value = "sku名称")
    private String skuName;

    @ApiModelProperty(value = "产品主图片路径")
    private String pic;

    @ApiModelProperty(value = "单个orderItem的配送类型3：无需快递")
    private Integer deliveryType;

    @ApiModelProperty(value = "加入购物车时间")
    private LocalDateTime shopCartTime;

    @ApiModelProperty(value = "产品价格")
    private Long price;

    @ApiModelProperty(value = "商品总金额")
    private Long spuTotalAmount;


}
